// AddInfo.cpp : implementation file
//

#include "stdafx.h"
#include "StaffManager.h"
#include "AddInfo.h"


// AddInfo dialog

IMPLEMENT_DYNAMIC(AddInfo, CDialog)

AddInfo::AddInfo(CWnd* pParent /*=NULL*/)
	: CDialog(AddInfo::IDD, pParent)
	, m_ID(_T(""))
	, m_Name(_T(""))
	, m_Age(_T(""))
	, m_Salary(_T(""))
	, m_Part(_T(""))
{

}

AddInfo::~AddInfo()
{
}

void AddInfo::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_ID, m_ID);
	DDX_Text(pDX, IDC_EDT_NAME, m_Name);
	DDX_Text(pDX, IDC_EDT_AGE, m_Age);
	DDX_Text(pDX, IDC_EDT_SALARY, m_Salary);
	DDX_Text(pDX, IDC_EDT_PART, m_Part);
}


BEGIN_MESSAGE_MAP(AddInfo, CDialog)
	ON_BN_CLICKED(IDC_BTN_OK, &AddInfo::OnBnClickedBtnOk)
END_MESSAGE_MAP()


// AddInfo message handlers

void AddInfo::OnBnClickedBtnOk()
{
	// TODO: Add your control notification handler code here
	//AddInfo mInfo;
	UpdateData(TRUE);
    EndDialog(10);
	

}
